/**
 * 检测请求模块
 */
import request from '@/utils/request'

// 获取所有设备
export const reqGetRecycleDevices = () => {
  return request({
    method: 'GET',
    url: '/cinorecycle/recycle-device-type/all'
  })
}

// 根据设备类型获取品牌
export const reqGetBrandByRecycleType = (typeId) => {
  return request({
    method: 'GET',
    url: `/cinorecycle/model/by_human/select_brand_or_model_by_type/${typeId}`
  })
}
// 根据 设备类型，品牌获取型号
export const reqGetTypesByRecycleTypeAndModel = (typeId, brand) => {
  return request({
    method: 'GET',
    url: `/cinorecycle/model/by_human/select_brand_or_model_by_type/${typeId}/${brand}`
  })
}

// 根据id查询
export const reqGetDeviceDetailByDeviceId = (deviceId) => {
  return request({
    method: 'GET',
    url: `/cinorecycle/all-in-one/id/${deviceId}`
  })
}
export const reqGetDeleteDetailByDeviceId = (deviceId) => {
  return request({
    method: 'DELETE',
    url: `/cinorecycle/all-in-one/id/${deviceId}`
  })
}

// 新版只获取PO
export const reqGetAllPos = (data = { poStatusList: [] }) => {
  return request({
    method: 'POST',
    url: '/cinorecycle/business_project/get_po',
    data
  })
}

export const reqGetCheckMarks = (typeId) => {
  return request({
    method: 'GET',
    url: `/cinorecycle/test-device-mark/marks/${typeId}`
  })
}
